{extend name="layout" /}
{block name="head"}
<script type="text/javascript">var yyuc_jspath = "__STATIC__/";</script>
<link type="text/css" href="/WdatePicker.css">
<script type="text/javascript" src="__DATEPICKER__/WdatePicker.js"></script>
<script type="text/javascript" src="__JS__/jquery.form.js"></script>
<style>
    .red {
        color: red;
    }
</style>
{/block}
{block name="content"}
<div class="search-box row">
    <form action="" method="post">
        <div class="col-md-8">
            <div class="form-group">
                <span class="pull-left form-span">注册时间:</span>
                <input type="text" class="form-control" style="width:160px;" placeholder="选择时间" name="start" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{$start?:''}" readonly>
            </div>
            <div class="form-group">
                <span class="pull-left form-span">到</span>
                <input type="text" class="form-control" style="width:160px;" placeholder="选择时间" name="end" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{$end?:''}" readonly>
            </div>
            <div class="form-group btn-search">
                <button class="btn btn-default" ><span class="glyphicon glyphicon-search"></span> 搜索</button>
            </div>
        </div>
    </form>
</div>
<div class="clearfix"></div>
<div class="table-margin">
    <table class="table table-bordered table-header" id="list-table">
        <thead>
        <tr>
            <td>登记日期</td>
            <td>高血压</td>
            <td>低血压</td>
            <td>体重</td>
            <td>舒适度</td>
            <td>腹透液浓度</td>
            <td>灌入量</td>
            <td>引流量</td>
            <td>超滤量</td>
            <td>尿量</td>
            <td>饮水量</td>
        </tr>
        </thead>
        <tbody>
        {foreach name="list" item="vo"}
        <tr>
            <td>{$vo['hy_time']}</td>
            <td>{$vo['gxy']}mmHg</td>
            <td>{$vo['dxy']}mmHg</td>
            <td>{$vo['weight']}kg</td>
            <td>{$Think.config.level[$vo['level']]}</td>
            <td>{$vo['nd']}%</td>
            <td>{$vo['grl']}ml</td>
            <td>{$vo['yll']}ml</td>
            <td class="{$vo['cll']<0?'red':''}">{$vo['cll']}ml</td>
            <td>{$vo['nl']}ml</td>
            <td>{$vo['ysl']}ml</td>
        </tr>
        {/foreach}
        </tbody>
        <tfoot>
        <tr>
            <td colspan="11">
                <div class="pull-right">
                    <nav>
                        <ul class="pagination">{$list->render()}</ul>
                    </nav>
                </div>
            </td>
        </tr>
        </tfoot>
    </table>
</div>
<script type="text/javascript">
    function userDel(id){
        layer.confirm('确认删除此游戏?', {icon: 3, title:'提示'}, function(index){
            //do something
            $.getJSON("{:url('user/userDel')}", {'id' : id}, function(res){
                if(1 == res.code){
                    layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
                        window.location.reload();
                    });
                }else{
                    layer.alert(res.msg, {title: '友情提示', icon: 2});
                }
            });
            layer.close(index);
        })
    }
</script>
{/block}